/*
** my_strncmp.c for lib in /home/boulah_m/myls-2016-boulah_m/lib
**
** Made by moustafa boulahia
** Login   <boulah_m@epitech.net>
**
** Started on  Tue Dec 20 08:24:43 2011 moustafa boulahia
** Last update Tue Jan 31 12:45:08 2012 moustafa boulahia
*/
#include "my.h"

int	my_strncmp(char *str, char *a_chek, int size)
{
  int	i;
      i = 0;
      while (str[i] != '\0' &&  a_chek[i] != '\0' && i < size)
	{
	  if (str[i] == a_chek[i])
	    {
	      i = i + 1;
	    }
	  else
	    {
	      return (size);
	    }
        }
      return (0);
}

